package com.ibeetl.admin.core.service;

import com.ibeetl.admin.core.dao.FiFinItemCheckDetailDao;
import com.ibeetl.admin.core.entity.CoreGlInterface;
import com.ibeetl.admin.core.entity.CoreSearch;
import com.ibeetl.admin.core.entity.FiFinItemCheckDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class FiFinItemCheckDetailService {
	@Autowired
    FiFinItemCheckDetailDao fiFinItemCheckDetailDAO;

	public List<FiFinItemCheckDetail> queryData(String sql) {
		return fiFinItemCheckDetailDAO.queryData(sql);
	}

	public void saveDataTransDetail(FiFinItemCheckDetail fiFinItemCheckDetail) {
		fiFinItemCheckDetailDAO.insert(fiFinItemCheckDetail);
	}

	public void deleteFiFinItemCheckDetail(CoreSearch search) {
		fiFinItemCheckDetailDAO.deleteFiFinItemCheckDetail(search);
	}

	public List<FiFinItemCheckDetail> queryFiFinDataByTrans(CoreSearch search) {
		return fiFinItemCheckDetailDAO.queryFiFinDataByTrans(search);
	}

	public List<FiFinItemCheckDetail> queryCoreToFiFinBySegment1Sum(CoreSearch search) {
		return fiFinItemCheckDetailDAO.queryCoreToFiFinBySegment1Sum(search);
	}

	public List<FiFinItemCheckDetail> queryTransToFiFinBySegment1Sum(CoreSearch search) {
		return fiFinItemCheckDetailDAO.queryTransToFiFinBySegment1Sum(search);
	}




}
